package dao;

import java.sql.ResultSet;
import java.util.List;
import pojo.Category;
import pojo.Product;
import util.MySqlDataAccessHelper;

public class ProductDAO extends HibernateDAO{
	
	//Get all Category
    @SuppressWarnings("unchecked")
	public static List<Product> lstProduct() {
        return HibernateDAO.getList("from Product");
    }   
    
    public static Product getProduct(int id) {
        return (Product) HibernateDAO.getObject(Product.class, id);
    } 
}
